package cn.epsilon3.domain.e3.dto.update;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description 修改资源入参
 *
 * @author: epsilon3
 * @date: 2023/11/11 17:16
 */
@Data
public class E3ResourceUpdate implements Serializable {

    private static final long serialVersionUID = -7895003493558106348L;

    /**
     * 资源ID
     */
    @NotBlank(message = "资源ID为空")
    @ApiModelProperty(value = "资源ID",required = true)
    private String resourceId;

    /**
     * 资源名称
     */
    @NotBlank(message = "资源名称不能为空")
    @ApiModelProperty(value = "资源名称",required = true)
    private String resourceName;

    /**
     * 资源权限标识符，只对功能有效
     */
    @ApiModelProperty(value = "资源权限标识符，只对功能有效")
    private String resourcePerms;

    /**
     * 资源层级，每个type层级分离
     */
    @Min(value = 1,message = "最小层级为1")
    @Max(value = 999,message = "最大层级为999")
    @NotNull(message = "资源层级不能为空")
    @ApiModelProperty(value = "资源层级，每个type层级分离",required = true)
    private Integer resourceLevel;

    /**
     * 资源路径，只对路由有效
     */
    @ApiModelProperty(value = "资源路径，只对路由有效")
    private String resourcePath;

    /**
     * 资源参数，只对路由有效
     */
    @ApiModelProperty(value = "资源参数，只对路由有效")
    private String resourceParams;

    /**
     * 资源图标
     */
    @ApiModelProperty(value = "资源图标")
    private String resourceIcon;

}
